package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SubtableClause {

    private int beginIndex;
    private int endIndex;
    private LocalOrSchemaQualifiedName supertableClause;

    public SubtableClause(int beginIndex,
                          LocalOrSchemaQualifiedName supertableClause) {
        this.beginIndex = beginIndex;
        this.endIndex = supertableClause.getEndIndex();
        this.supertableClause = supertableClause;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public LocalOrSchemaQualifiedName getSupertableClause() {
        return supertableClause;
    }

}
